define(['require', './PageView','../libs/extend'], function (require, PageView, extend) {
    return PageView.extend({
        //initialize
        initialize: function (options) {

        },
        onRender: function () {
            var _this = this;
            var userId = extend.getlocalStorage("YY_userInfo");
            var indexData={
                "userId":userId.userId,
                "pageindex":1,
                "pagesize":10
            };
            extend.sendData(window.app.proxy.root + 'getResearchRecordByUser', indexData, function(res){
                if(res.status == 'success'){
                    _this.findComponent("OwnPar").themeData.reset(res.data);
                }else{
                    extend.Toast(res.message,2000);
                }
            },function(e){
                extend.Toast('网络错误',2000);
            });
        }
    })
});





